using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;

namespace FileManager.Views
{
    public partial class FileDetailView : UserControl
    {
        public FileDetailView()
        {
            InitializeComponent();
        }

        private void OnImageMouseDown(object sender, MouseButtonEventArgs e)
        {
            // 处理图片鼠标点击事件
            if (e.LeftButton == MouseButtonState.Pressed && e.ClickCount == 2)
            {
                // 触发双击查看完整图片命令
                var viewModel = DataContext as ViewModels.FileDetailViewModel;
                viewModel?.ViewFullImageCommand.Execute(null);
            }
        }
    }
}